package com.gwtjs.icustom.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import com.gwtjs.icustom.pojo.ServerHost;

/*加了这个注解 就表示了 这是一个Mybatis的mapper类
就相当于之前使用的spring整合mybatis接口 也可以使用@MapperScan("com..mapper")*/
@Mapper
@Repository
public interface ServerHostMapper {

	public List<ServerHost> queryHostList();

	public ServerHost queryHostById(Integer id);

	public ServerHost queryHostByIp(String hostIp);

	public int addHost(ServerHost records);
	public int addHosts(List<ServerHost> records);

	public int updateHost(ServerHost records);

	public int updateHostname(ServerHost record);
	public int updateSetStatus(ServerHost record);
	public int updateAppStatus(ServerHost record);
	public int updateLibStatus(ServerHost record);
	public int updateAmbariStatus(ServerHost record);

	public int deleteHosts(List<ServerHost> records);

}
